#include "xworker_queue.h"
#include "xassert.h"
namespace xge{
namespace xge_internal{
  WorkerQueue::~WorkerQueue() {
    // The worker queue can only not be delete when it is sleep , locking , or running
    XASSERT_SAY((status() != STATUS_SLEEP) && (status()!=STATUS_LOCKING) && (status()!= STATUS_WORKING ),
      _xT("A worker queue has been deleted when it is in the unsafe status!\n")
      _xT("StatusCode:%d.\n"),status() );
  }
}
}